CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock
CORE_VM_DOCKER_HOSTCONFIG_NETWORKMODE={{ NETNAME }}
FABRIC_LOGGING_SPEC=INFO
CORE_PEER_TLS_ENABLED=true
CORE_PEER_GOSSIP_USELEADERELECTION=true
CORE_PEER_GOSSIP_ORGLEADER=false
CORE_PEER_PROFILE_ENABLED=false
CORE_PEER_TLS_CERT_FILE=/etc/hyperledger/fabric/tls/server.crt
CORE_PEER_TLS_KEY_FILE=/etc/hyperledger/fabric/tls/server.key
CORE_PEER_TLS_ROOTCERT_FILE=/etc/hyperledger/fabric/tls/ca.crt
CORE_CHAINCODE_EXECUTETIMEOUT=300s
CORE_PEER_ID={{ item.fullname }}
CORE_PEER_ADDRESS={{ item.fullname }}:7051
CORE_PEER_LISTENADDRESS=0.0.0.0:7051
CORE_PEER_CHAINCODEADDRESS={{ item.fullname }}:7052
CORE_PEER_CHAINCODELISTENADDRESS=0.0.0.0:7052
{% set sameorgpeers = allpeers|selectattr('org', 'equalto', item.org)|list %}
{% if sameorgpeers|length > 1 %}
{% set otherpeer = sameorgpeers|difference([item])|list|first %}
CORE_PEER_GOSSIP_BOOTSTRAP={{ otherpeer.url }}:{{ otherpeer.port }}
{% else %}
CORE_PEER_GOSSIP_BOOTSTRAP={{ item.url }}:{{ item.port }}
{% endif %}
CORE_PEER_GOSSIP_EXTERNALENDPOINT={{ item.url }}:{{ item.port }}
CORE_PEER_LOCALMSPID={{ item.mspid }}
CORE_CHAINCODE_LOGGING_LEVEL=DEBUG
{% if DB_TYPE == 'couchdb' %}
CORE_LEDGER_STATE_STATEDATABASE=CouchDB
CORE_LEDGER_STATE_COUCHDBCONFIG_COUCHDBADDRESS={{ item.fullname }}.couchdb:5984
CORE_LEDGER_STATE_COUCHDBCONFIG_USERNAME=admin
CORE_LEDGER_STATE_COUCHDBCONFIG_PASSWORD=adminpw
{% endif %}
{% if fabric.settings is defined and fabric.settings.peer is defined %}
{% for setting in (fabric.settings.peer|dict2items) %}
{{ setting.key }}={{ setting.value }}
{% endfor %}
{% endif %}
CORE_OPERATIONS_LISTENADDRESS={{ item.fullname }}:7061
CORE_OPERATIONS_TLS_ENABLED=false
CORE_METRICS_PROVIDER=prometheus
